//
//  MDTitleBarView.swift
//  麦兜直播
//
//  Created by Apple on 16/10/12.
//  Copyright © 2016年 yeqingyu. All rights reserved.
//

import UIKit

class MDTitleBarView:UICollectionReusableView {
    
    var homeGroup:MDHomeGroup?{
       didSet{
      title.text = homeGroup?.tag_name
      iconView.image = UIImage(named: homeGroup!.icon_name)
      }
    }
    
    @IBOutlet weak var moreTitle: UILabel!

    @IBOutlet weak var title: UILabel!
    
    @IBOutlet weak var iconView: UIImageView!

    override func awakeFromNib() {
        super.awakeFromNib()
        // 设置该控件不随着父控件的拉伸而拉伸
        autoresizingMask = UIViewAutoresizing()
    }
}




extension MDTitleBarView{
    class func show()->MDTitleBarView{
      return Bundle.main.loadNibNamed("MDTitleBarView", owner: nil, options: nil)?.last as! MDTitleBarView
    }

}
